<script type='text/javascript' src='{$base_dir}modules/dept_pharmacy/js/AJAX_EwhExportQueue.js'></script>
<script src='{$base_dir}js/jquery.tablesorter.min.js' type='text/javascript' ></script>
<script src='{$base_dir}js/jquery.tablesorter.pager.js' type='text/javascript' ></script>

<script type="text/javascript">
    {literal}   
    $(document).ready(function () {

    	$('table#tableProcessedQueue').tablesorter();   
    	addDatePicker("#fromDateFilterdd",'#fromDateFiltermm','#fromDateFilteryyyy',false,false,true);
        $("#fromDateFilterdd").val('01');
        addDatePicker("#toDateFilterdd",'#toDateFiltermm','#toDateFilteryyyy',false,false,true);
        doSearch();
        
        
    });
    
    {/literal} 
      
</script>
<div  class="form_container" style="float: none;">
    <form id="filterForm" action="">    
        <span id="seachStatusMessage" style="color: red; font-style: italic;">&nbsp;</span>
		<table cellspacing="0" cellpadding="0" style='width: 100%;'>
		                <tr>
		                    <td width="300px">
		                        <span class="label">{translate}Request ticket code{/translate}</span>
		                        <input type="text" size="20" name="reqTicketCodeFilter" value="" id="reqTicketCodeFilter" />
		                    </td>            
		                    <td width="70px">
		                        <span class="label">{translate}From date{/translate}</span>
		                    </td>
		                    <td>
		                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="fromDate{$datePart_0}" id="fromDateFilter{$datePart_0}" type="text" value="" style="width: 30px;">
		                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="fromDate{$datePart_1}" id="fromDateFilter{$datePart_1}" type="text" value="" style="width: 30px;">
		                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="fromDate{$datePart_2}" id="fromDateFilter{$datePart_2}" type="text" value="" style="width: 56px;">
		                        <br /><span class="label" style="width: 21px; color: #AAA;">({$datePart_0}-{$datePart_1}-{$datePart_2})</span>
		                    </td>
		                    <td width="70px">
		                        <span class="label">{translate}To date{/translate}</span>
		                    </td>
		                    <td>
		                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="toDate{$datePart_0}" id="toDateFilter{$datePart_0}" type="text" value="" style="width: 30px;">
		                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="toDate{$datePart_1}" id="toDateFilter{$datePart_1}" type="text" value="" style="width: 30px;">
		                        <input onkeypress="return allowEnterIntegerNum(event,true)" name="toDate{$datePart_2}" id="toDateFilter{$datePart_2}" type="text" value="" style="width: 56px;">
		                        <br /><span class="label" style="width: 21px; color: #AAA;">({$datePart_0}-{$datePart_1}-{$datePart_2})</span>
		                    </td>                     
		                </tr>        
		</table>
	</form>
    <div style="text-align: right;"><a class="imgBtn" id="searchBtn"
    onclick="doSearch()"><img src="../images/search.png"
    title="{translate}Search{/translate}" /></a>
    </div>  
</div>
<div id='processedQueue' class='queue'>
        <div class='documentListHeader'>
            <span> {translate}Processed request{/translate} </span>
        </div>
        <table id='tableProcessedQueue' cellspacing='0' cellpadding='0' class='grid' style='width: 100%'>                        
            <thead>
                <tr>
                    <th width="30px">{translate}Order number{/translate}</th>
                    <th width="150px">{translate}Request ID{/translate}</th>
                    <th width="150px">{translate}Issued date{/translate}</th>                              
                    <th width="150px">{translate}Req from{/translate}</th>
                    <th width="150px">{translate}Issued by{/translate}</th>                                                                
                    <th width="150px">{translate}Processed date{/translate}</th>                            
                    <th width="100px">{translate}Processed by{/translate}</th>
                    <th>{translate}A/R{/translate}</th>
                </tr>
            </thead>
            <tbody>            
            </tbody>
        </table>
        <table class='totalTable' cellspacing='0' cellpadding='0' style='width: 100%'>          
        </table>        
</div>

